<?php
namespace app\admin\validate;

use think\Validate;

class Wenan extends Validate
{
    protected $rule = [
        'wenan_path' => 'alphaDash|unique:wenan',
    ];

    protected $message = [
        'wenan_path.alphaDash' => '文件名只允许字母、数字、下划线及破折号',
        'wenan_path.unique' => '文件名以存在,请修改重试',
    ];
}